import request from '@/utils/request'

// 查询库存锁定单商品信息列表
export function listStockLockItem(query) {
  return request({
    url: '/stock/stockLockItem/list',
    method: 'post',
    data: query
  })
}

// 查询库存锁定单商品信息详细
export function getStockLockItem(id) {
  return request({
    url: '/stock/stockLockItem/' + id,
    method: 'get'
  })
}

// 新增库存锁定单商品信息
export function addStockLockItem(data) {
  return request({
    url: '/stock/stockLockItem/add',
    method: 'post',
    data: data
  })
}

// 修改库存锁定单商品信息
export function updateStockLockItem(data) {
  return request({
    url: '/stock/stockLockItem/update',
    method: 'post',
    data: data
  })
}

// 删除库存锁定单商品信息
export function delStockLockItem(id) {
  return request({
    url: '/stock/stockLockItem/delete/' + id,
    method: 'post'
  })
}
